import { openBuildService } from '../../helper/service'

// 值类型为String或Object,String为url(method),Object同axios(config)参数支持相同,data和params只能为对象类型
const settings = {
  // 形象进度模板列表
  getTemplateist: {
    url: 'intecons/admin/api/v1/image/list',
    method: 'get'
  },
  // 新增模板
  createTemplate: {
    url: 'intecons/admin/api/v1/image/add',
    method: 'post'
  },
  // 修改模板
  updateTemplate: {
    url: 'intecons/admin/api/v1/image/edit',
    method: 'put'
  },
  // 删除模板
  deleteTemplate: {
    url: 'intecons/admin/api/v1/image/delete',
    method: 'delete'
  },
  // 节点列表
  getNodeList: {
    url: 'intecons/admin/api/v1/image/node_list',
    method: 'get'
  },
  // 新增节点
  createNode: {
    url: 'intecons/admin/api/v1/image/node_add',
    method: 'post'
  },
  // 修改节点
  updateNode: {
    url: 'intecons/admin/api/v1/image/node_edit',
    method: 'put'
  },
  // 删除节点
  deleteNode: {
    url: 'intecons/admin/api/v1/image/node_delete',
    method: 'delete'
  }
}

export default openBuildService(settings)
